﻿@using Topro.Entity.Response.Permission

@model Topro.Entity.PagedList<PermissionResponse>
<div class="data-body data-scroll">
    <div class="data-view">
        <div class="data-div-view table-responsive">
            <table class="table table-hover table-striped table-bordered">
                <thead>
                    <tr>
                        <th class="t_l">权限名称</th>
                        <th class="t_l wd150">权限代码</th>
                        <th width="75">操作</th>
                    </tr>
                </thead>
                <tbody>
                    @if (Model != null && Model.TData != null && Model.TData.Any())
                    {
                        foreach (var item in (List<Topro.Entity.Response.Permission.PermissionResponse>)Model.TData)
                        {
                            <tr>
                                <td class="t_l">@(item.Name)</td>
                                <td class="t_l" width="200">@(item.Code)</td>
                                <td width="130">
                                    <button type="button" class="btn btn-default" data-id="@(item.Id)" data-name="@(item.Name)" data-code="@(item.Code)" id="btn_@(item.Id)" onclick="return Select(this);">选择</button>
                                </td>
                            </tr>
                        }
                    }
                    else
                    {
                        <tr>
                            <td colspan="3" class="t_c">暂无记录</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
<!-- 必要的分页参数设置 -->
<input type="hidden" id="TotalCount" value="@(Model != null ? Model.TotalCount : 0)" />